package com.jiyongjun.component;

import com.jiyongjun.component.enums.LogApiTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

import javax.validation.Valid;
import java.util.Set;

/**
 * <h2></h2>
 * <h3>描述：</h3>
 *
 * @author yongjun.jyj
 * @since 2022/7/14 23:34
 */
@Setter
@Getter
@ToString
@ConfigurationProperties(prefix = "sls.log.biz")
public class SlsLogBizProperties {
    /** 校验参数时，不需要使用{@link Valid} 注解标记形参。如果为true，只有使用 {@link Valid}标记的参数才会被校验 */
    private Boolean validateArgsWithoutValidAnnotation = false;

    /** 要关闭的日志类型。例如，关闭定时任务日志 {@link LogApiTypeEnum} */
    private Set<String> disabledLogApiType;
}
